package io.fredia.femicro.gate.server.fallback;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

import io.fredia.femicro.api.vo.authority.PermissionInfo;
import io.fredia.femicro.gate.server.feign.IUserService;
import lombok.extern.slf4j.Slf4j;

/**
 * 用户服务熔断配置
 * 
 * @author : Fredia
 * @since : 2018年3月12日
 * @version : v1.0.0
 */
@Service
@Slf4j
public class UserServiceFallback implements IUserService{
    @Override
    public List<PermissionInfo> getPermissionByUsername(@PathVariable("username") String username) {
        log.error("调用{}异常{}","getPermissionByUsername",username);
        return null;
    }

    @Override
    public List<PermissionInfo> getAllPermissionInfo() {
        log.error("调用{}异常","getPermissionByUsername");
        return null;
    }
}
